//
//  QSBaseViewController.m
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/16.
//  Copyright © 2020 DingC. All rights reserved.
//

#import "QSBaseViewController.h"

@interface QSBaseViewController ()

@end

@implementation QSBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    if (@available(iOS 11.0, *)) {
        [UITableView appearance].estimatedRowHeight = 0;
        [UITableView appearance].estimatedSectionHeaderHeight = 0;
        [UITableView appearance].estimatedSectionFooterHeight = 0;
        [UITableView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        [UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        [UICollectionView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }
    //强制view位置从导航栏下面开始计算
//    self.edgesForExtendedLayout = UIRectEdgeNone;
    
    self.rt_disableInteractivePop = NO;
    if (@available(iOS 13.0, *))
        //强制关掉深色模式
    { self.overrideUserInterfaceStyle = UIUserInterfaceStyleLight; }
}

- (void)setupNavgationBarTitle:(NSString *)title {
    self.navigationItem.title = title;
}

- (void)dealloc {
    DLog(@"%@ dealloc",[self class]);
}

@end
